home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 835 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
  2. Message-ID: <3154A368.4FE8E787@cantrip.org>
  3. X-Original-Date: Sat, 23 Mar 1996 17:20:40 -0800
  4. Path: in1.uu.net!bounce-back
  5. Date: 24 Mar 96 04:43:38 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: dynamic_cast<const B&>
  9. Organization: The Cantrip Cooperative
  10. References: <4isb5a$ct4$1@mhafc.production.compuserve.com>
  11. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i386)
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMVTTFeEDnX0m9pzZAQGk1QF/YAshxgDH84SfOQmvmXtpAyLH7UTqPCvw
  14.     Vr9gI8ZFDe5nzjGUJjdWz+It+bwk0Yw9
  15.     =wgfo
  16.  
  17. Martin E. Nordberg III wrote:
  18. >   I just installed MS VC++ 4.1.  The following code (strained
  19. > from my larger code) now fails to compile:
  20. >     class A { virtual ~A() };
  21. >     class B : public A {};
  22. >     void test( const A&  a )
  23. >       { const B& b = dynamic_cast<const B&>( a ); }
  24. >   Did Microsoft goof ... ?
  25.  
  26. "Heh heh heh."
  27.  
  28. But seriously... new implementations from the Draft are bound to 
  29. have mistakes.  What's important is whether they get fixed after
  30. attention is called to them.  I'll be interested to see whether
  31. the next release still has this bug.
  32.  
  33. Nathan Myers
  34. ncm@cantrip.org  http://www.cantrip.org/
  35. ---
  36. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  37. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  38. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  39. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  40. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  41.